import request from "./request";

export function updateHomePage(data) {
  return request({
    url: "/api/admin/Shadow/CreateOrUpdateHomePage",
    method: "post",
    data: data,
  });
}

export function getHomePage(data) {
  return request({
    url: "/api/admin/Shadow/DetailHomePage",
    method: "get",
    params: data,
  });
}

export function listShadowMenu(data) {
  return request({
    url: "/api/admin/Shadow/QueryShadowMenu",
    method: "post",
    data: data,
  });
}

export function getShadowMenu(data) {
  return request({
    url: "/api/admin/Shadow/DetailShadowMenu",
    method: "get",
    params: data,
  });
}

export function addShadowMenu(data) {
  return request({
    url: "/api/admin/Shadow/AddShadowMenu",
    method: "post",
    data: data,
  });
}

export function updateShadowMenu(data) {
  return request({
    url: "/api/admin/Shadow/UpdateShadowMenu",
    method: "post",
    data: data,
  });
}

export function deleteShadowMenu(data) {
  return request({
    url: "/api/admin/Shadow/DeleteShadowMenu",
    method: "get",
    params: data,
  });
}
